/**   
 * @Title: CarOutInfoVo.java 
 * @Package com.local.entity.vo 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @author pichunhan   
 * @date 2016年4月18日 下午5:55:59 
 * @version V1.0   
 */

package com.local.entity.vo;

import java.util.Date;
import java.util.List;

import com.cz073586.tools.util.Tools;
import com.local.util.MyDateUtil;

/**
 * 类描述：出场详情
 * 
 * @ClassName: CarOutInfoVo
 * @author pichunhan
 * @date 2016年4月18日 下午5:55:59
 */

public class CarOutInfoVo
{
	
	// 车牌
	private String carNo;
	
	// 车辆卡类型
	private String cardType;
	
	// 入口
	private String carInStationName;
	
	// 出口
	private String carOutStationName;
	
	// 入场时间
	private Date carInTime;
	
	// 入场方式
	private Byte carInType;
	// 出场方式
	private Byte carOutType;
	
	// 出场时间
	private Date carOutTime;
	
	// 停车时长
	private Long stayTime;
	
	// 停车时长
	private String parkTime;
	
	// 支付状态
	private Byte payType;
	
	// 入场图片
	private String carInImage;
	
	// 出场图片
	private String carOutImage;
	
	// 消费总额
	private Double totalMoney;
	
	/**
	 * 1.0 标记自动开闸，2.0 手动开闸
	 */
	private double version;
	
	/**
	 * 计费类型
	 */
	private String billType;
	
	/**
	 * 车辆类型
	 */
	private String carTypeName;
	
	private List<CarOutPayBillVo> carOutPayBillVos;
	
	
	
	public String getBillType()
	{
		return billType;
	}

	public void setBillType(String billType)
	{
		this.billType = billType;
	}

	public String getCarTypeName()
	{
		return carTypeName;
	}

	public void setCarTypeName(String carTypeName)
	{
		this.carTypeName = carTypeName;
	}

	public String getCarNo()
	{
		return carNo;
	}
	
	public void setCarNo(String carNo)
	{
		this.carNo = carNo;
	}
	
	public String getCardType()
	{
		return cardType;
	}
	
	public void setCardType(String cardType)
	{
		this.cardType = cardType;
	}
	
	public String getCarInStationName()
	{
		return carInStationName;
	}
	
	public void setCarInStationName(String carInStationName)
	{
		this.carInStationName = carInStationName;
	}
	
	public String getCarOutStationName()
	{
		return carOutStationName;
	}
	
	public void setCarOutStationName(String carOutStationName)
	{
		this.carOutStationName = carOutStationName;
	}
	
	public Date getCarInTime()
	{
		return carInTime;
	}
	
	public void setCarInTime(Date carInTime)
	{
		this.carInTime = carInTime;
	}
	
	public Byte getCarInType()
	{
		return carInType;
	}
	
	public void setCarInType(Byte carInType)
	{
		this.carInType = carInType;
	}
	
	public Byte getCarOutType()
	{
		return carOutType;
	}
	
	public void setCarOutType(Byte carOutType)
	{
		this.carOutType = carOutType;
	}
	
	public Date getCarOutTime()
	{
		return carOutTime;
	}
	
	public void setCarOutTime(Date carOutTime)
	{
		this.carOutTime = carOutTime;
	}
	
	public Long getStayTime()
	{
		return stayTime;
	}
	
	public void setStayTime(Long stayTime)
	{
		this.stayTime = stayTime;
	}
	
	public Byte getPayType()
	{
		return payType;
	}
	
	public void setPayType(Byte payType)
	{
		this.payType = payType;
	}
	
	public String getCarInImage()
	{
		return carInImage;
	}
	
	public void setCarInImage(String carInImage)
	{
		this.carInImage = carInImage;
	}
	
	public String getCarOutImage()
	{
		return carOutImage;
	}
	
	public void setCarOutImage(String carOutImage)
	{
		this.carOutImage = carOutImage;
	}
	
	public Double getTotalMoney()
	{
		return totalMoney;
	}
	
	public void setTotalMoney(Double totalMoney)
	{
		this.totalMoney = totalMoney;
	}
	
	public List<CarOutPayBillVo> getCarOutPayBillVos()
	{
		return carOutPayBillVos;
	}
	
	public void setCarOutPayBillVos(List<CarOutPayBillVo> carOutPayBillVos)
	{
		this.carOutPayBillVos = carOutPayBillVos;
	}
	
	public String getParkTime()
	{
		if (!Tools.isEmpty(this.getStayTime()))
		{
			return MyDateUtil.periodToString(this.getStayTime());
		}
		return null;
		// return
		// this.getStayTime()/3600*1000+"时"+(this.getStayTime()%3600*1000)/60+"分"+(this.getStayTime()%3600*1000)%60+"秒";
	}
	
	public void setParkTime(String parkTime)
	{
		this.parkTime = parkTime;
	}
	
	public double getVersion()
	{
		return version;
	}
	
	public void setVersion(double version)
	{
		this.version = version;
	}
	
}
